@import "mixins";
@import "variables";

form.jqtransformdone label
{
  margin-top:4px;
  margin-right:8px;
  display:block;
  float:left;
  font-size: 0.7em;
  @include opacity(0.5);
}

form.jqtransformdone div.rowElem
{
  clear:both;
  padding:4px 0;
}

button.jqTransformButton
{
  border:none;
  background-color:transparent;
  overflow:visible;
  font-family:"Maven Pro",sans-serif;
  margin: 1.5em 0;
  padding:0;
}

:first-child+html button.jqTransformButton[type]
{
  width:1px;
}

button.jqTransformButton span
{
  color: $foreground-main;
  font-weight: 500;
  background:#004400;
  @include box-shadow(inset 0 0 10px #000000);
  behavior: none;
  border: 1px solid #003300\9; // IE 7-8 only
  border-radius: 0.25em;
  display:block;
  float:left;
  margin:0;
  padding:0.7em 4em;
}

button.jqTransformButton_hover span
{
 @include linear-gradient(#0e600c, #004400);
 behavior: none;
}

button.jqTransformButton_click span
{
  @include linear-gradient(#003300, #004400);
  behavior: none;
}

.jqTransformInputWrapper
{
  background:#fff;
  @include box-shadow(inset 0 0 5px #444);
  behavior: none;
  border: 1px solid #444\9; // IE 7-8 only
  border-radius: 5px;
  float:left;
  padding:0;
  margin-bottom: 0.5em;
  width: 100%;
}

.jqTransformInputWrapper input
{
  font-family:"Maven Pro",sans-serif;
  font-size:0.9em;
  vertical-align:middle;
  color:#404040;
  border:none;
  background:transparent;
  margin:0.4em;
  padding:0;
  width: 100%;
  // Google Chrome
  outline-style: none;
}

* html .jqTransformInputWrapper input
{
  margin:0 0 0 -8px;
  padding:0;
}

*+html .jqTransformInputWrapper input
{
  margin-left:-10px;
  padding:0;
}

/*.jqTransformInputWrapper_hover*/
/*{*/
  /*background-position:left -31px;*/
/*}*/

/*.jqTransformInputWrapper_hover div.jqTransformInputInner*/
/*{*/
  /*background-position:right -31px;*/
/*}*/

/*.jqTransformInputWrapper_focus*/
/*{*/
  /*background-position:left -62px;*/
/*}*/

/*.jqTransformInputWrapper_focus div.jqTransformInputInner*/
/*{*/
  /*background-position:right -62px;*/
/*}*/

.jqTransformSafari .jqTransformInputInner div
{
  position:relative;
  overflow:hidden;
  margin:0 8px;
}

.jqTransformSafari .jqTransformInputInner div input
{
  background-color:none;
  position:absolute;
  top:-10px;
  left:-2px;
  height:42px;
  padding-left:4px;
}

table.jqTransformTextarea td#jqTransformTextarea-mm textarea
{
  font-size:12px;
  line-height:16px;
}

table.jqTransformTextarea td
{
  font-size:1px;
  line-height:1px;
  width:5px;
  height:5px;
  margin:0;
  padding:0;
}

table.jqTransformTextarea textarea
{
  border:0;
  background:none;
  margin:0;
  padding:0;
}

table.jqTransformTextarea td#jqTransformTextarea-tl
{
  background:image-url("app/themes/freshnight/form/textarea/textarea_tl.gif") no-repeat top left;
}

table.jqTransformTextarea td#jqTransformTextarea-tm
{
  background:image-url("app/themes/freshnight/form/textarea/textarea_tm.gif") repeat-x top left;
}

table.jqTransformTextarea td#jqTransformTextarea-tr
{
  background:image-url("app/themes/freshnight/form/textarea/textarea_tr.gif") no-repeat top left;
}

table.jqTransformTextarea td#jqTransformTextarea-ml
{
  background:image-url("app/themes/freshnight/form/textarea/textarea_ml.gif") repeat-y top left;
}

table.jqTransformTextarea td#jqTransformTextarea-mm
{
  background:image-url("app/themes/freshnight/form/textarea/textarea-mm.gif") repeat;
}

table.jqTransformTextarea td#jqTransformTextarea-mr
{
  background:image-url("app/themes/freshnight/form/textarea/textarea_mr.gif") repeat-y top left;
}

table.jqTransformTextarea td#jqTransformTextarea-bl
{
  background:image-url("app/themes/freshnight/form/textarea/textarea_bl.gif") no-repeat top left;
}

table.jqTransformTextarea td#jqTransformTextarea-bm
{
  background:image-url("app/themes/freshnight/form/textarea/textarea_bm.gif") repeat-x top left;
}

table.jqTransformTextarea td#jqTransformTextarea-br
{
  background:image-url("app/themes/freshnight/form/textarea/textarea_br.gif") no-repeat top left;
}

table.jqTransformTextarea-hover td#jqTransformTextarea-mm
{
  background-image:image-url("app/themes/freshnight/form/textarea/textarea-mm-hover.gif");
}

table.jqTransformTextarea-focus td#jqTransformTextarea-mm
{
  background-image:image-url("app/themes/freshnight/form/textarea/textarea-mm-focus.gif");
}

table.jqTransformTextarea .jqTransformSafariTextarea div
{
  position:relative;
  overflow:hidden;
  border:0 solid red;
}

table.jqTransformTextarea .jqTransformSafariTextarea textarea
{
  background:none;
  position:absolute;
  top:-10px;
  left:-10px;
  resize:none;
  padding:10px;
}

.jqTransformRadioWrapper
{
  float:left;
  display:block;
  margin:5px 4px 0;
}

.jqTransformRadio
{
  background:transparent image-url("app/themes/freshnight/form/radio.gif") no-repeat center top;
  vertical-align:middle;
  height:19px;
  width:18px;
  display:block;
}

span.jqTransformCheckboxWrapper
{
  display:block;
  float:left;
  margin-left: 0.5em;
  margin-right: 0.25em;
  margin-top:5px;
}

a.jqTransformCheckbox
{
  background:transparent image-url("app/themes/freshnight/form/checkbox.png") no-repeat center top;
  vertical-align:middle;
  height:9px;
  width:9px;
  display:block;
  padding-top: 1px;
}

a.jqTransformChecked
{
  background-position:center bottom;
}

.jqTransformSelectWrapper
{
  width:45px;
  position:relative;
  height:31px;
  background:image-url("app/themes/freshnight/form/select_left.gif") no-repeat top left;
  float:left;
}

.jqTransformSelectWrapper div span
{
  font-size:12px;
  float:none;
  position:absolute;
  white-space:nowrap;
  height:31px;
  line-height:15px;
  overflow:hidden;
  padding:8px 0 0 7px;
}

.jqTransformSelectWrapper a.jqTransformSelectOpen
{
  display:block;
  position:absolute;
  right:0;
  width:31px;
  height:31px;
  background:image-url("app/themes/freshnight/form/select_right.gif") no-repeat center center;
}

.jqTransformSelectWrapper ul
{
  position:absolute;
  width:43px;
  top:30px;
  left:0;
  list-style:none;
  background-color:#FFF;
  border:solid 1px #CCC;
  display:none;
  height:150px;
  overflow:auto;
  overflow-y:auto;
  z-index:10;
  margin:0;
  padding:0;
}

.jqTransformSelectWrapper ul a
{
  display:block;
  text-decoration:none;
  color:#333;
  background-color:#FFF;
  font-size:12px;
  padding:5px;
}

.jqTransformSelectWrapper ul a.selected
{
  background:#ededed;
  color:#333;
}

.jqTransformSelectWrapper ul a:hover,.jqTransformSelectWrapper ul a.selected:hover
{
  background:#3582c4;
  color:#fff;
}

.jqTransformHidden
{
  display:none;
}

* html button.jqTransformButton,*+html button.jqTransformButton
{
  height:33px;
}

* button.jqTransformButton span span,*+button.jqTransformButton span span
{
  height:25px;
}

table.jqTransformTextarea-hover td#jqTransformTextarea-tl,table.jqTransformTextarea-hover td#jqTransformTextarea-tm,table.jqTransformTextarea-hover td#jqTransformTextarea-tr,table.jqTransformTextarea-hover td#jqTransformTextarea-bl,table.jqTransformTextarea-hover td#jqTransformTextarea-bm,table.jqTransformTextarea-hover td#jqTransformTextarea-br
{
  background-position:0 -5px;
}

table.jqTransformTextarea-hover td#jqTransformTextarea-ml,table.jqTransformTextarea-hover td#jqTransformTextarea-mr
{
  background-position:-5px 0;
}

table.jqTransformTextarea-focus td#jqTransformTextarea-tl,table.jqTransformTextarea-focus td#jqTransformTextarea-tm,table.jqTransformTextarea-focus td#jqTransformTextarea-tr,table.jqTransformTextarea-focus td#jqTransformTextarea-bl,table.jqTransformTextarea-focus td#jqTransformTextarea-bm,table.jqTransformTextarea-focus td#jqTransformTextarea-br
{
  background-position:0 -10px;
}

table.jqTransformTextarea-focus td#jqTransformTextarea-ml,table.jqTransformTextarea-focus td#jqTransformTextarea-mr
{
  background-position:-10px 0;
}

.cfb { color: #666; font-style: italic; }
.cfa { color: #000 }